package com.lianzheng.model;

/*
 *  Created on Fri Apr 13 17:14:27 CST 2012
 *
 */
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * TbSysVisitnum Base Java Bean
 * 
 * This class is the base class for the model
 * 
 */
 
public class TbSysVisitnum extends com.lianzheng.model.BaseObject implements Serializable {

    protected java.math.BigDecimal typeid;
	protected java.math.BigDecimal visitnum;


  /**
	*
	* Default Empty Constructor for class TbSysVisitnum
	*
	*/
	public TbSysVisitnum () {
		super();
	}
	
  /**
	*
	* Default All Fields Constructor for class TbSysVisitnum
	*
	*/
	public TbSysVisitnum (
		 java.math.BigDecimal in_typeid
		,java.math.BigDecimal in_visitnum
        ) {
		this.setTypeid(in_typeid);
		this.setVisitnum(in_visitnum);
    }

    
  /**
	*
	* @return java.math.BigDecimal
	*/
	public java.math.BigDecimal getTypeid() {
		return this.typeid;
	}
	
  /**
	* Set the typeid
	*/	
	public void setTypeid(java.math.BigDecimal aValue) {
		this.typeid = aValue;
	}	
  /**
	*
	* @return java.math.BigDecimal
	*/
	public java.math.BigDecimal getVisitnum() {
		return this.visitnum;
	}
	
  /**
	* Set the visitnum
	*/	
	public void setVisitnum(java.math.BigDecimal aValue) {
		this.visitnum = aValue;
	}	
   /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof TbSysVisitnum)) {
			return false;
		}
		TbSysVisitnum rhs = (TbSysVisitnum) object;
		return new EqualsBuilder()
				.append(this.typeid, rhs.typeid)
				.append(this.visitnum, rhs.visitnum)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.typeid) 
				.append(this.visitnum) 
				.toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("typeid", this.typeid) 
				.append("visitnum", this.visitnum) 
				.toString();
	}

	
}